using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;

public class LoadAsset : MonoBehaviour
{
    public string key = "Assets/Axe/axe.prefab";

    void Start()
    {
        Addressables.InstantiateAsync(key).Completed += LoadAsset_Completed;
    }

    private void LoadAsset_Completed(AsyncOperationHandle<GameObject> obj)
    {
        Debug.Log("LoadAsset_Completed");
    }
}
